import Vue from "vue";
import Router from "vue-router";
// import Layout from '@/views/layout/Layout'
import plblicDomain from './publicDomain'

Vue.use(Router);
// 默认不在菜单内显示
export const staticRouters = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login'),
    hidden: true
  },
  {
    path: '/close',
    name: 'Close',
    component: () => import('@/views/close'),
    hidden: true
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/404'),
    hidden: true
  },
  {
    name: 'zfbPay',
    path: '/zfbPay',
    component: () => import('@/views/pay/zfbPay')
  }
]

// 异步路由, 默认都Layout下子路由的目录
export const dynamicRouters = [
  ...plblicDomain,
  // 首页
  {
    name: 'Dashboard',
    path: 'dashboard',
    component: () => import('@/views/dashboard')
  },

  // 会员菜单
  // { name: 'VipList', path: 'vip/list', props: true, component: () => import('@/views/vip/list') }, // 会员管理
  {
    name: 'VipList',
    path: 'vip/list',
    props: true,
    component: () => import('@/views/vip/list')
  }, // 会员管理(优化)
  {
    name: 'VipLabel',
    path: 'vip/label',
    props: true,
    component: () => import('@/views/vip/label')
  }, // 会员标签
  {
    name: 'VipGroup',
    path: 'vip/group',
    props: true,
    component: () => import('@/views/vip/group')
  }, // 会员分群
  {
    name: 'VipDetail',
    path: 'vip/detail',
    props: true,
    component: () => import('@/views/vip/detail')
  }, // false:会员详情
  {
    name: 'VipImport',
    path: 'vip/import',
    props: true,
    component: () => import('@/views/vip/import')
  }, // false:会员导入
  {
    name: 'VipQrCodeConfig',
    path: 'vip/qr-code-config',
    props: true,
    component: () => import('@/views/vip/qr-code-config')
  }, // 会员码规则
  // { name: 'VipModifyAccount', path: 'vip/modify-account', props: true, component: () => import('@/views/vip/modify-account') }, // false:批量调整
  {
    name: 'VipCardList',
    path: 'vip/card-list',
    props: true,
    component: () => import('@/views/vip/card-list')
  }, // 会员卡类型
  {
    name: 'VipCardBag',
    path: 'vip/card-bag',
    props: true,
    component: () => import('@/views/vip/card-bag')
  }, // 同步微信卡包
  {
    name: 'VipOperate',
    path: 'vip/operate',
    props: true,
    component: () => import('@/views/vip/operate')
  }, // 会员运营
  {
    name: 'VipPromoteQr',
    path: 'vip/promote-qr',
    props: true,
    component: () => import('@/views/vip/promote-qr')
  }, // false:门店二维码推广
  {
    name: 'VipPromoters',
    path: 'vip/promoters',
    props: true,
    component: () => import('@/views/vip/promoters')
  }, // false:推广拉新
  {
    name: 'VipCardGive',
    path: 'vip/card-give',
    props: true,
    component: () => import('@/views/vip/card-give')
  }, // false:赠送会员
  {
    name: 'VipAccountConfig',
    path: 'vip/account-config',
    props: true,
    component: () => import('@/views/vip/account-config')
  }, // 会员储值
  {
    name: 'VipPoints',
    path: 'vip/points',
    props: true,
    component: () => import('@/views/points')
  }, // 会员积分
  {
    name: 'VipPointsMall',
    path: 'vip/points-mall',
    props: true,
    component: () => import('@/views/points/points-mall')
  }, // false:积分商城
  {
    name: 'VipPointsProductAdd',
    path: 'vip/points-product-add',
    props: true,
    component: () => import('@/views/points/points-product-add')
  }, // false:新增积分商城兑换
  {
    name: 'VipPointsProductEdit',
    path: 'vip/points-product-edit/:id',
    props: true,
    component: () => import('@/views/points/points-product-edit')
  }, // false:编辑积分商城兑换
  {
    name: 'VipBenefitCenter',
    path: 'vip/benefit-center',
    props: true,
    component: () => import('@/views/vip/benefit-center')
  }, // 会员权益中心
  {
    name: 'VipBenefitMemberBirthday',
    path: 'vip/benefit-member-birthday',
    props: true,
    component: () => import('@/views/vip/benefit-member-birthday')
  }, // 会员生日权益
  {
    name: 'VipBenefitMemberDay',
    path: 'vip/benefit-member-day',
    props: true,
    component: () => import('@/views/vip/benefit-member-day')
  }, // 会员日权益

  // 营销中心
  {
    name: "MarketingActivityCreate",
    path: "marketing/activity-create",
    props: true,
    component: () => import("@/views/marketing/activity-create"),
  }, // 营销互动中心入口
  {
    name: "MarketingActivityManage",
    path: "marketing/activity-manage",
    props: true,
    component: () => import("@/views/marketing/activity-manage"),
  }, // 活动列表
  {
    name: "MarketingActivityForm",
    path: "marketing/activity-form",
    props: true,
    component: () => import("@/views/marketing/activity-form"),
  }, // 活动
  {
    name: 'MarketingActivityDialog',
    path: 'marketing/activity-dialog',
    props: true,
    component: () => import('@/views/marketing/activity-dialog')
  }, // 首页弹窗

  // 商家中心
  {
    name: 'BusinessInfo',
    path: 'business/info',
    props: true,
    component: () => import('@/views/business/info')
  }, // 商户概况
  {
    name: 'BusinessInfoEdit',
    path: 'business/info-edit',
    props: true,
    component: () => import('@/views/business/info-edit')
  }, // 商户资料管理
  {
    name: 'BusinessStoreEdit',
    path: 'business/store-edit/:id',
    props: true,
    component: () => import('@/views/business/store-edit')
  }, // 修改门店配置
  {
    name: 'BusinessStoreAdd',
    path: 'business/store-add',
    props: true,
    component: () => import('@/views/business/store-add')
  }, // 新增门店
  {
    name: 'BusinessProductCenter',
    path: 'business/product-center',
    props: true,
    component: () => import('@/views/business/product-center')
  }, // 产品中心
  {
    name: 'BusinessGenerateQrcode',
    path: 'business/generate-qrcode',
    props: true,
    component: () => import('@/views/business/generate-qrcode')
  }, // 制作二维码
  {
    name: 'BusinessMerchantsAffiche',
    path: 'business/merchants-affiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche')
  }, // 商户公告
  {
    name: 'BusinessAddAffiche',
    path: 'business/merchants-affiche/AddAffiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche/AddAffiche')
  }, // 编辑/新增公告
  {
    name: 'BusinessMerchantsAffiche',
    path: 'business/merchants-affiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche')
  }, // 商户公告
  // { name: 'BusinessFlowHis', path: 'business/flow-his', props: true, component: () => import('@/views/business/flow-his') }, // 商户流量余额记录
  {
    name: 'MarketingActivityDialogEdit',
    path: 'marketing/activity-dialog-edit',
    props: true,
    component: () => import('@/views/marketing/activity-dialog-edit')
  },
  {
    name: 'MarketingActivityDialogAdd',
    path: 'marketing/activity-dialog-add',
    props: true,
    component: () => import('@/views/marketing/activity-dialog-edit')
  },
  {
    name: 'MarketingActivityDialogCheck',
    path: 'marketing/activity-dialog-check',
    props: true,
    component: () => import('@/views/marketing/activity-dialog-edit')
  }, // 添加弹窗 编辑弹窗 查看弹窗
  // {
  //   name: "MarketingActivityDialogCheck",
  //   path: "marketing/activity-dialog-check",
  //   props: true,
  //   component: () => import("@/views/marketing/activity-dialog-check"),
  // }, // 查看弹窗
  {
    name: 'MarketingGoods',
    path: 'marketing/goods',
    props: true,
    component: () => import('@/views/marketing/goods')
  }, // 活动扫码领券

  {
    name: "MarketingGoods",
    path: "marketing/goods",
    props: true,
    component: () => import("@/views/marketing/goods"),
  }, // 活动扫码领券
  {
    name: "MarketingActivitySuperMember",
    path: "marketing/activity-superMember",
    props: true,
    component: () => import("@/views/marketing/activity-superMember"),
  }, // 超级会员
  {
    name: "MarketingActivitySuperInviter",
    path: "marketing/activity-superMember/superInviter",
    props: true,
    component: () =>
      import("@/views/marketing/activity-superMember/superInviter"),
  }, // 邀请者
  {
    name: "MarketingActivitySuperInviterMerch",
    path: "marketing/activity-superMember/superInviter/inviterMerch",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superInviter/inviterMerch"
      ),
  }, // 邀请商户
  {
    name: "MarketingActivitySuperInviterEditMerch",
    path: "marketing/activity-superMember/superInviter/inviterEditMerch",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superInviter/inviterEditMerch"
      ),
  }, // 编辑商户
  {
    name: "MarketingActivitySuperInviterMsg",
    path: "marketing/activity-superMember/superInviter/inviterMsg",
    props: true,
    component: () =>
      import("@/views/marketing/activity-superMember/superInviter/inviterMsg"),
  }, // 邀请记录
  {
    name: "MarketingActivitySuperInviterChangeMsg",
    path: "marketing/activity-superMember/superInviter/inviterChangeMsg",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superInviter/inviterChangeMsg"
      ),
  }, // 修改记录
  {
    name: "MarketingActivitySuperInviterOrderMsg",
    path: "marketing/activity-superMember/superInviter/inviterOrderMsg",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superInviter/inviterOrderMsg"
      ),
  }, // 订单记录
  {
    name: "MarketingActivitySuperInviterButie",
    path: "marketing/activity-superMember/superInviter/inviterButie",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superInviter/inviterButie"
      ),
  }, // 补贴详情
  {
    name: "MarketingActivitySuperParticipate",
    path: "marketing/activity-superMember/superParticipate",
    props: true,
    component: () =>
      import("@/views/marketing/activity-superMember/superParticipate"),
  }, // 参与者
  {
    name: "MarketingActivitySuperParticipateMsg",
    path: "marketing/activity-superMember/superParticipate/participateMsg",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superParticipate/participateMsg"
      ),
  }, // 参与记录
  {
    name: "MarketingActivitySuperParticipateOrderMsg",
    path: "marketing/activity-superMember/superParticipate/participateOrderMsg",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superParticipate/participateOrderMsg"
      ),
  }, // 订单记录
  {
    name: "MarketingActivitySuperParticipateMarket",
    path: "marketing/activity-superMember/superParticipate/participateMarket",
    props: true,
    component: () =>
      import(
        "@/views/marketing/activity-superMember/superParticipate/participateMarket"
      ),
  }, // 活动
  {
     name: "MarketingActivityCustomForm",
     path: "marketing/activity-customForm",
     props: true,
     component: () => import("@/views/marketing/activity-customForm"),
  }, //自定义表单
  {
     name: "MarketingActivityCustomFormViewData",
     path: "marketing/activity-customForm/components/CustomFormViewData",
     props: true,
     component: () => import("@/views/marketing/activity-customForm/components/CustomFormViewData"),
  },//自定义表单查看数据
  {
    name: 'MarketingActivityCustomFormFrame',
    path: 'marketing/activity-customFormframe',
    props: true,
    component: () => import('@/views/marketing/activity-customFormframe')
  }, // 自定义表单-创建表单
  {
    name: 'MarketingCouponTask',
    path: 'marketing/coupon-task',
    props: true,
    component: () => import('@/views/marketing/coupon-task')
  }, // 云南卡卡定制需求，赠券任务

  {
    name: "DecorateModule",
    path: "wxapp/decorateModule",
    props: true,
    component: () => import("@/views/miniProgram/decorateModule/index"),
  },//装修模块
  {
    name: "FormModule",
    path: "wxapp/formModule",
    props: true,
    component: () => import("@/views/miniProgram/formModule/index"),
  },//表单模块
  {
    name: "DescFrame",
    path: "wxapp/descFrame",
    props: true,
    component: () => import("@/views/miniProgram/decorateModule/descFrame"),
  },//装修模块frame
  {
    name: "FormFrame",
    path: "wxapp/formFrame",
    props: true,
    component: () => import("@/views/miniProgram/formModule/formFrame"),
  },//表单模块frame

  // 商家中心
  {
    name: 'BusinessInfo',
    path: 'business/info',
    props: true,
    component: () => import('@/views/business/info')
  }, // 商户概况
  {
    name: 'BusinessInfoEdit',
    path: 'business/info-edit',
    props: true,
    component: () => import('@/views/business/info-edit')
  }, // 商户资料管理
  {
    name: 'BusinessStoreEdit',
    path: 'business/store-edit/:id',
    props: true,
    component: () => import('@/views/business/store-edit')
  }, // 修改门店配置
  {
    name: 'BusinessStoreAdd',
    path: 'business/store-add',
    props: true,
    component: () => import('@/views/business/store-add')
  }, // 新增门店
  {
    name: 'BusinessProductCenter',
    path: 'business/product-center',
    props: true,
    component: () => import('@/views/business/product-center')
  }, // 产品中心
  {
    name: 'BusinessGenerateQrcode',
    path: 'business/generate-qrcode',
    props: true,
    component: () => import('@/views/business/generate-qrcode')
  }, // 制作二维码
  {
    name: 'BusinessHuiOrderReport',
    path: 'business/hui-orderReport',
    props: true,
    component: () => import('@/views/business/hui-orderReport')
  }, // 惠点单报表
  {
    name: 'BusinessMerchantsAffiche',
    path: 'business/merchants-affiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche')
  }, // 商户公告
  {
    name: 'CancelVerificationReport',
    path: 'business/cancel-verificationReport',
    props: true,
    component: () => import('@/views/business/cancel-verificationReport')
  }, // 核销报表
  {
    name: 'BusinessAddAffiche',
    path: 'business/merchants-affiche/AddAffiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche/AddAffiche')
  }, // 编辑/新增公告
  {
    name: 'BusinessMerchantsAffiche',
    path: 'business/merchants-affiche',
    props: true,
    component: () => import('@/views/business/merchants-affiche')
  }, // 商户公告
  // { name: 'BusinessFlowHis', path: 'business/flow-his', props: true, component: () => import('@/views/business/flow-his') }, // 商户流量余额记录

  // 报表
  {
    name: 'StatementBalanceChange',
    path: 'statement/balance-change',
    props: true,
    component: () => import('@/views/statement/balance-change')
  }, // 余额变动报表
  {
    name: 'StatementPromotersBonus',
    path: 'statement/promoters-bonus',
    props: true,
    component: () => import('@/views/statement/promoters-bonus')
  }, // 推广员提成报表
  {
    name: 'StatementPointsChange',
    path: 'statement/points-change',
    props: true,
    component: () => import('@/views/statement/points-change')
  }, // 积分变动明细
  {
    name: 'StatementPointsMallRecord',
    path: 'statement/points-mall-record',
    props: true,
    component: () => import('@/views/statement/points-mall-record')
  }, // 积分变动明

  // 商家中心-公众号/小程序
  {
    name: "PublicAuth",
    path: "public/auth",
    props: true,
    component: () => import("@/views/public/auth"),
  }, // 公众号授权
  {
    name: 'BusinessPublicAuth',
    path: 'public/businessPublicAuth',
    props: true,
    component: () => import('@/views/public/businessPublicAuth')
  }, // 公众号授权
  {
    name: 'PublicMaterial',
    path: 'public/material-list',
    props: true,
    component: () => import("@/views/public/material-list"),
  }, //  图文素材
  {
    name: "PublicMaterialEdit",
    path: "public/material-edit",
    props: true,
    component: () => import("@/views/public/material-edit"),
  }, //  编辑图文素材
  {
    name: "PublicMaterialAdd",
    path: "public/material-add",
    props: true,
    component: () => import("@/views/public/material-add"),
  }, //  新增图文素材
  {
    name: "PublicMenu",
    path: "public/menu",
    props: true,
    component: () => import("@/views/public/menu"),
  }, //  公众号菜单
  {
    name: "PublicTextReply",
    path: "public/text-reply",
    props: true,
    component: () => import("@/views/public/text-reply"),
  }, // 文本消息
  {
    name: "MiniProgramManage",
    path: "wxapp/manage",
    props: true,
    component: () => import("@/views/miniProgram/index"),
  },

  {
    name: 'BusinessMiniProgramManage',
    path: 'businessMiniProgramManage/manage',
    props: true,
    component: () => import('@/views/businessMiniProgramManage/index')
  },

  // 数据下载
  {
    name: 'Download',
    path: 'download',
    props: true,
    component: () => import('@/views/download')
  }, // 数据下载

  // 餐饮模块
  {
    name: 'WcyProductManage',
    path: 'wcyModule/productManage',
    props: true,
    component: () => import('@/views/wcyModule/views/productManage')
  },
  {
    name: 'WcyShopManage',
    path: 'wcyModule/shopManage',
    props: true,
    component: () => import('@/views/wcyModule/views/shopManage')
  },
  {
    name: 'WcyTableManage',
    path: 'wcyModule/tableManage',
    props: true,
    component: () => import('@/views/wcyModule/views/tableManage')
  },
  {
    name: 'WcyOrderRecord',
    path: 'wcyModule/orderRecord',
    props: true,
    component: () => import('@/views/wcyModule/views/orderRecord')
  },
  {
    name: 'WcyPreviewCode',
    path: 'wcyModule/previewCode',
    props: true,
    component: () => import('@/views/wcyModule/views/previewCode')
  },

  // 预订模块
  {
    name: 'BookingShopManage',
    path: 'bookingModule/shopManage',
    props: true,
    component: () => import('@/views/bookingModule/views/shopManage')
  },
  {
    name: 'BookingProductManage',
    path: 'bookingModule/productManage',
    props: true,
    component: () => import('@/views/bookingModule/views/productManage')
  },
  {
    name: 'BookingProductState',
    path: 'bookingModule/productState',
    props: true,
    component: () => import('@/views/bookingModule/views/productState')
  },
  {
    name: 'BookingOrderRecord',
    path: 'bookingModule/orderRecord',
    props: true,
    component: () => import('@/views/bookingModule/views/orderRecord')
  },
  {
    name: 'BookingPreviewCode',
    path: 'bookingModule/previewCode',
    props: true,
    component: () => import('@/views/bookingModule/views/previewCode')
  },
  {
    name: 'BookingTagManage',
    path: 'bookingModule/tagManage',
    props: true,
    component: () => import('@/views/bookingModule/views/tagManage')
  },

  // 寄存模块
  {
    name: 'DepositShopManage',
    path: 'depositModule/shopManage',
    props: true,
    component: () => import('@/views/depositModule/views/shopManage')
  },
  {
    name: 'DepositProductManage',
    path: 'depositModule/productManage',
    props: true,
    component: () => import('@/views/depositModule/views/productManage')
  },
  {
    name: 'DepositWarehouseManage',
    path: 'depositModule/warehouseManage',
    props: true,
    component: () => import('@/views/depositModule/views/warehouseManage')
  },
  {
    name: 'DepositOrderRecord',
    path: 'depositModule/orderRecord',
    props: true,
    component: () => import('@/views/depositModule/views/orderRecord')
  },
  {
    name: 'DepositOrderDetail',
    path: 'depositModule/orderDetail',
    props: true,
    component: () => import('@/views/depositModule/views/orderDetail')
  },
  // 开票记录
  {
    name: 'Invoice',
    path: 'invoice',
    props: true,
    component: () => import('@/views/invoice/views'),
    keepAlive: false
  },
  // 查看发票
  {
    name: 'CheckInvoice',
    path: 'invoice/checkInvoice',
    props: true,
    component: () => import('@/views/invoice/views/modules/checkInvoice')
  },

  // 预约模块
  // Reservation
  {
    name: 'WxaReservationShopManage',
    path: 'wxaReservationModule/shopManage',
    props: true,
    component: () => import('@/views/wxaReservationModule/views/shopManage')
  },
  {
    name: 'WxaReservationResourceManage',
    path: 'wxaReservationModule/resourceManage',
    props: true,
    component: () => import('@/views/wxaReservationModule/views/resourceManage')
  },

  {
    name: 'WxaReservationProjectPlanManage',
    path: 'wxaReservationModule/projectPlanManage',
    props: true,
    component: () =>
      import('@/views/wxaReservationModule/views/projectPlanManage')
  },
  {
    name: 'WxaReservationOrderManage',
    path: 'wxaReservationModule/orderManage',
    props: true,
    component: () => import('@/views/wxaReservationModule/views/orderManage')
  },

  // 微信小程序搭建
  {
    name: 'WxaBuild',
    path: 'wxaBuildModule/build',
    props: true,
    component: () => import('@/views/wxaBuildModule/views')
  },
  // 新低代码微信小程序搭建
  {
    name: 'WxaNewBuild',
    path: 'wxaNewBuildModule/build',
    props: true,
    component: () => import('@/views/wxaNewBuildModule/views')
  },
  // 商城模块
  {
    name: 'WxaMallShopManage',
    path: 'wxaMallModule/shopManage',
    props: true,
    component: () => import('@/views/wxaMallModule/views/shopManage')
  },
  {
    name: 'WxaMallProductManage',
    path: 'wxaMallModule/productManage',
    props: true,
    component: () => import('@/views/wxaMallModule/views/productManage')
  },
  {
    name: 'WxaMallProductSkuManage',
    path: 'wxaMallModule/productSkuManage',
    props: true,
    component: () => import('@/views/wxaMallModule/views/productSkuManage')
  },
  {
    name: 'WxaMallOrderManage',
    path: 'wxaMallModule/orderManage',
    props: true,
    component: () => import('@/views/wxaMallModule/views/orderManage')
  },
  {
    name: 'WxaMallDeliveryManage',
    path: 'wxaMallModule/deliveryManage',
    props: true,
    component: () => import('@/views/wxaMallModule/views/deliveryManage')
  },
  {
    name: 'WxaMallLocalMall',
    path: 'wxaMallModule/localMall',
    props: true,
    component: () => import('@/views/wxaMallModule/views/localMall')
  },
  {
    name: 'WxaMallSecKillActivity',
    path: 'wxaMallModule/secKillActivity',
    props: true,
    component: () => import('@/views/wxaMallModule/views/secKillActivity')
  },
  {
    name: 'WxaMallGroupActivity',
    path: 'wxaMallModule/groupActivity',
    props: true,
    component: () => import('@/views/wxaMallModule/views/groupActivity')
  },
  {
    name: 'WxaMallThreadList',
    path: 'wxaMallModule/threadList',
    props: true,
    component: () => import('@/views/wxaMallModule/views/threadList')
  },

  // 微信小程序搭建
  {
    name: "WxaBuild",
    path: "wxaBuildModule/build",
    props: true,
    component: () => import("@/views/wxaBuildModule/views"),
  },

  // 工作
  {
    name: 'WorkHandleOrder',
    path: 'work/handleOrder',
    props: true,
    component: () => import('@/views/work/handleOrder')
  }, // 处理订单
  {
    name: 'WorkVerifyOrder',
    path: 'work/verifyOrder',
    props: true,
    component: () => import('@/views/work/verifyOrder')
  }, // 核销订单
  {
    name: 'MyMessage',
    path: 'work/myMessage',
    props: true,
    component: () => import('@/views/work/myMessage')
  }, // 我的消息
  // 插件中心
  {
    name: "PlugCenterList",
    path: "plug/PlugCenterList",
    props: true,
    component: () =>
      import("@/views/plug/PlugCenterList"),
  },

  {
    name: "PlugCenterAddMerc",
    path: "plug/PlugCenterAddMerc",
    props: true,
    component: () =>
      import("@/views/plug/PlugCenterList/PlugCenterAddMerc"),
  },
  {
    name: "PlugCenterSupOpenPlug",
    path: "plug/PlugCenterSupOpenPlug",
    props: true,
    component: () => import("@/views/plug/PlugCenterList/PlugCenterSupOpenPlug"),
  },
  {
    name: 'PlugCenterSupRenew',
    path: 'plug/PlugCenterSupRenew',
    props: true,
    component: () => import('@/views/plug/PlugCenterList/PlugCenterSupRenew')
  },
  // 卡券中心
  {
    name: 'CardsAndOfferCreateCouponOrCard',
    path: 'cardsAndOffer/createCouponOrCard',
    props: true,
    component: () => import('@/views/cardsAndOffer/views/createCouponOrCard')
  },
  {
    name: 'CardsAndOfferPreCouponOrCard',
    path: 'cardsAndOffer/preCouponOrCard',
    props: true,
    component: () => import('@/views/cardsAndOffer/views/preCouponOrCard')
  },
  {
    name: 'CardsAndOfferManageCoupon',
    path: 'cardsAndOffer/manageCoupon',
    props: true,
    keepAlive: true,
    component: () => import('@/views/cardsAndOffer/views/manageCoupon')
  },
  {
    name: 'CardsAndOfferEditCoupon',
    path: 'cardsAndOffer/editCoupon',
    props: true,
    component: () => import('@/views/cardsAndOffer/views/editCoupon')
  },
  {
    name: 'CardsAndOfferManageCard',
    path: 'cardsAndOffer/manageCard',
    props: true,
    keepAlive: true,
    component: () => import('@/views/cardsAndOffer/views/manageCard')
  },
  {
    name: 'CardsAndOfferEditCard',
    path: 'cardsAndOffer/editCard',
    props: true,
    component: () => import('@/views/cardsAndOffer/views/editCard')
  },
  {
    name: 'CardsAndOfferReceiveCenter',
    path: 'cardsAndOffer/receiveCenter',
    props: true,
    keepAlive: true,
    component: () => import('@/views/cardsAndOffer/views/receiveCenter')
  },
  {
    name: 'CardsAndOfferCouponBase',
    path: 'cardsAndOffer/couponBase',
    props: true,
    component: () => import('@/views/cardsAndOffer/views/couponBase')
  },

  // 工作
  {
    name: 'WorkHandleOrder',
    path: 'work/handleOrder',
    props: true,
    component: () => import('@/views/work/handleOrder')
  }, // 处理订单
  {
    name: 'WorkVerifyOrder',
    path: 'work/verifyOrder',
    props: true,
    component: () => import('@/views/work/verifyOrder')
  }, // 核销订单
  {
    name: 'MyMessage',
    path: 'work/myMessage',
    props: true,
    component: () => import('@/views/work/myMessage')
  }, // 我的消息
  // 插件中心
  {
    name: 'PlugCenterList',
    path: 'plug/PlugCenterList',
    props: true,
    component: () => import('@/views/plug/PlugCenterList')
  },
  {
    name: 'PlugCenterAddMerc',
    path: 'plug/PlugCenterAddMerc',
    props: true,
    component: () => import('@/views/plug/PlugCenterList/PlugCenterAddMerc')
  },
  {
    name: 'PlugCenterSupOpenPlug',
    path: 'plug/PlugCenterSupOpenPlug',
    props: true,
    component: () => import('@/views/plug/PlugCenterList/PlugCenterSupOpenPlug')
  },
  {
    name: 'PlugCenterSupRenew',
    path: 'plug/PlugCenterSupRenew',
    props: true,
    component: () => import('@/views/plug/PlugCenterList/PlugCenterSupRenew')
  },

  // 交易中心
  {
    name: 'PayView',
    path: 'payCenterDir/PayView',
    props: true,
    component: () => import('@/views/payCenterDir/payCenter/PayView')
  }, // 交易概览
  {
    name: 'IncomeHis',
    path: 'payCenterDir/IncomeHis',
    props: true,
    component: () => import('@/views/payCenterDir/payCenter/IncomeHis')
  }, // 收入记录
  {
    name: 'ExpendHis',
    path: 'payCenterDir/ExpendHis',
    props: true,
    component: () => import('@/views/payCenterDir/payCenter/ExpendHis')
  }, // 支出记录
  {
    name: 'RefundHis',
    path: 'payCenterDir/RefundHis',
    props: true,
    component: () => import('@/views/payCenterDir/RefundHis')
  }, // 退款记录
  {
    name: 'ThirdPartySwipe',
    path: 'payCenterDir/ThirdPartySwipe',
    props: true,
    component: () => import('@/views/payCenterDir/ThirdPartySwipe')
  }, // 第三方刷卡交易



]

const router = new Router({
  routes: staticRouters,
  scrollBehavior: () => ({
    y: 0
  })
})

export default router;

// export default new Router({
//   // mode: 'history',
//   scrollBehavior: () => ({ y: 0 }),
//   base: 'merchant',
//   routes: constantRouterMap
// })
